// Write a function to replace vowels with numbers
// Get practice with strings
// Get practice with command line
// Get practice with switch

#include <cs50.h>
#include <stdio.h>

string replace(string input);

int main(int argc, string argv[])
{
    if (argc != 2)
    {
        printf("Usage: ./no-vowels word\n");
        return 1;
    }

    string input = argv[1];
    string output = replace(input);

    printf("%s\n", output);
}

string replace(string input)
{

    for (int i = 0; input[i] != '\0'; i++)
    {
        switch (input[i])
        {
            case 'A':
            case 'a':
                input[i] = '6';
                break;
            case 'E':
            case 'e':
                input[i] = '3';
                break;
            case 'I':
            case 'i':
                input[i] = '1';
                break;
            case 'U':
            case 'u':

                break;
            case 'O':
            case 'o':
                input[i] = '0';
                break;
        }
    }

    return input;
}
